#ifndef APP_LED_H
#define APP_LED_H
#include "main.h"

#define APP_TOGGLE_FAST_TIME    (100)
#define APP_TOGGLE_SLOW_TIME    (500)

typedef enum {
    APP_LED_UNLOCK,
    APP_LED_LOCK,
    APP_LED_WIFI,
    APP_LED_BAT,
    APP_LED_JAM,
    APP_LED_FEED,	
    APP_LED_RESET,
	APP_LED_MAX
} app_led_type_t;

typedef enum {
    APP_LED_OFF,
    APP_LED_ON,
    APP_LED_TOGGLE
} app_led_state_t;



void app_led_init(void);
void app_led_task(void);

void app_led_toggle(app_led_type_t type, unsigned int interval, unsigned int timeout);
void app_led_on(app_led_type_t type);
void app_led_off(app_led_type_t type);
void app_led_on_all(void);
void app_led_off_all(void);

void app_led_timer_init(void);
void app_led_timer_deinit(void);
void app_led_timer_irq_handler(void);
unsigned char app_led_toggle_is_stopped(void);

#endif